<?php
/* @var $this LocationController */
/* @var $data Location */
?>
<?php $url= Yii::app()->request->baseUrl."/location/view/name/".$data->name."/id/".$data->id;
$mainImg=$data->mainImage;
?>
<table><tr>
		<td>
			<div id="ficheMini">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					id="tableFicheMini">
					<tr>
						<td width="255" rowspan="3"><a href="<?php echo $url; ?>">
						<img src="<?php echo $mainImg->getImagePath("250x100");?>" width="250" height="100" border="0"> </a>
						</td>
						<td width="473" class="ficheTitreLieu"><a href="<?php echo $url; ?>"
							class="ficheTitreLieu"><?php echo CHtml::encode($data->name); ?><span
								class="ficheDepartementLieu"> <?php echo CHtml::encode($data->idDepartment->name); ?></span>
						</a></td>
						<td width="43" class="ficheZipCodeLieu">&nbsp;</td>
						<td width="211" class="ficheZipCodeLieu"><?php echo CHtml::encode($data->town); ?> <?php echo CHtml::encode($data->zip_code); ?></td>
					</tr>
					<tr>
						<td rowspan="2"><?php echo $data->summary; ?>
							<br> <br> <a href="<?php echo $url; ?>"><img
								src="<?php echo Yii::app()->request->baseUrl; ?>/images/bt-decouvrir.png" alt="" width="117" height="23"
								border="0" align="right"> </a>
						</td>
						<td>&nbsp;</td>
						<td rowspan="2"><p class="ficheTypeLieu">
								<?php echo $data->getAttributeLabel('id_type') ?> : <span class="ficheDetails"><?php echo CHtml::encode($data->idType->name); ?><br>
								</span><?php echo $data->getAttributeLabel('capacity') ?> : <span class="ficheDetails"><?php echo CHtml::encode($data->capacity); ?></span>
								<?php echo Yii::t('main', 'persons');?><br>
							</p>							
						</td>
					</tr>
					<tr>
						<td align="right" valign="bottom">&nbsp;</td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>	